import request from '@/utils/request'

export default {


          //1 添加小节信息
    addVideo(video) {
        return request({
        //   url: '/table/list/'+current+"/"+limit,
        //是  ``     不是''
            url:'/eduservice/video/addVideo',
             method: 'post',
             data:video

   
        })
      },
    //修改小节
         updateVideo(video) {
                return request({
                //   url: '/table/list/'+current+"/"+limit,
                //是  ``     不是''
                    url:'/eduservice/video/updateVideo',
                     method: 'post',
                     data:video
           
                })
              },
              //删除小节
            deleteVideo(videoId) {
                return request({
                //   url: '/table/list/'+current+"/"+limit,
                //是  ``     不是''
                    url:'/eduservice/video/'+videoId,
                     method: 'delete',
                     
           
                })
              },
                   //根据id查询小节
            getVideo(videoId) {
                return request({
                //   url: '/table/list/'+current+"/"+limit,
                //是  ``     不是''
                    url:'/eduservice/video/getVideo/'+videoId,
                     method: 'get',
                     
           
                })
              },
              //删除阿里云视频
                        //删除小节
            deleteAlyVideo(videoId) {
              return request({
              //   url: '/table/list/'+current+"/"+limit,
              //是  ``     不是''
                  url:'/eduvod/video/removeAlyVideo/'+videoId,
                   method: 'delete',
                   
         
              })
            },
              



}